<template>
    <div id="app">
        <router-view />
    </div>
</template>

<script setup>
</script>

<style scoped>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}

/* 输入框自定义样式 */
:deep(.custom-input) {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: all 0.3s;
    &:hover {
        border-color: #c0c4cc;
    }
    &:focus {
        border-color: #409EFF;
        outline: none;
        box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
    }
}

/* 表格自定义样式 */
:deep(.custom-table) {
    .el-table__cell {
        border-color: #ebeef5;
    }
    .el-table__header-wrapper {
        .el-table__header {
            .el-table__cell {
                background-color: #f5f7fa;
                color: #409EFF;
                font-weight: 500;
            }
        }
    }
    .el-table__body-wrapper {
        .el-table__row {
            &:hover {
                background-color: #f5f7fa;
            }
        }
        .el-table__cell {
            color: #606266;
        }
    }
}

/* 分页组件样式 */
:deep(.custom-pagination) {
    .el-pagination {
        display: flex;
        justify-content: flex-end;
        margin-top: 16px;
    }
}

/* 禁用输入框样式优化 */
:deep(.el-input.is-disabled .el-input__inner) {
    background-color: #f5f7fa !important;
}

/* 全局按钮样式 */
:deep(.el-button) {
    transition: all 0.3s ease;
}

/* 全局卡片样式 */
:deep(.el-card) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* 居中消息框样式 */
:deep(.center-message-box .el-message-box) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 表单样式调整 */
:deep(.el-form-item__label) {
    text-align: left !important;
}

:deep(.el-form-item__content) {
    margin-left: 120px !important;
}
</style>